package com.example.teesystem.common.websocket.model;

import com.example.teesystem.entity.Issue;
import com.example.teesystem.entityDto.IssueBriefMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/5/11 18:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PkIssueMessage {
    private IssueBriefMessage nextIssue;

    private boolean currentAnswerResult;

    public PkIssueMessage(Issue issue, boolean currentAnswerResult){
        this.nextIssue = new IssueBriefMessage(issue);
        this.currentAnswerResult = currentAnswerResult;
    }
}
